<!DOCTYPE html>  
<html lang="en">  
<head>  
    <meta charset="UTF-8">  
    <meta name="viewport" content="width=device-width, initial-scale=1.0">  
    <title>Table Sorting and Search</title>  
    <link rel="stylesheet" href="1.css">  
</head>  
<body>  
    <input type="text" id="searchInput" placeholder="搜索公司..." onkeyup="filterTable()">  
    <table id="companyTable">  
        <thead>  
            <tr>  
                <th onclick="sortTable(0)">公司名称</th>  
                <th onclick="sortTable(1)">国家</th>  
            </tr>  
        </thead>  
        <tbody>  
            <tr>  
                <td>Apple</td>  
                <td>USA</td>  
            </tr>  
            <tr>  
                <td>Samsung</td>  
                <td>South Korea</td>  
            </tr>  
            <tr>  
                <td>Sony</td>  
                <td>Japan</td>  
            </tr>  
            <tr>  
                <td>Huawei</td>  
                <td>China</td>  
            </tr>  
        </tbody>  
    </table>  
    <script src="1.js"></script>  
</body>  
</html>